screen_reader_stop_speech
This function will stop any information that is currently being spoken by a screen reader.
bool screen_reader_stop_speech(int reader)
Parameters:
reader
A value representing one of the four supported screen readers (see remarks).
Return value:
true on success, false on failure.
Remarks:
This function supports four available screen readers, each of which are identified by a number, as follows:
Please note that the screen reader must be running and all dependencies correctly installed in order for this function to work correctly. If these steps are not met, the function will return false and no action will be taken. See Appendix F for information about dependencies.
Example:
// Get Jaws to speak some text and stop it after 2 seconds.
void main()
{
screen_reader_speak(JAWS, "Hi. Bet ya didn't know I could say things on my own without a screen, did you? Well, I'm speaking a fairly long string, and if I haven't stopped by now, there's something definitely wrong!");
wait(2000);
screen_reader_stop_speech(JAWS);
}